home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / presto / prest1_0.lha / src / diffs < prev    next >
Text File  |  1991-12-11  |  8KB  |  249 lines

  1. ************** 68020_swtch.s ****************
  2. -------------------------------------
  3. ************** Makefile ****************
  4. -------------------------------------
  5. ************** README ****************
  6. -------------------------------------
  7. ************** SLOCK.c ****************
  8. -------------------------------------
  9. ************** asmdefs.h ****************
  10. -------------------------------------
  11. ************** atack.c ****************
  12. -------------------------------------
  13. ************** atomic_int.h ****************
  14. -------------------------------------
  15. ************** c.h ****************
  16. -------------------------------------
  17. ************** callstate.C ****************
  18. -------------------------------------
  19. ************** callstate.h ****************
  20. -------------------------------------
  21. ************** config.h ****************
  22. -------------------------------------
  23. ************** debug.C ****************
  24. -------------------------------------
  25. ************** debug.h ****************
  26. -------------------------------------
  27. ************** defs.h ****************
  28. -------------------------------------
  29. ************** diffs ****************
  30. -------------------------------------
  31. ************** dynix_timer.C ****************
  32. 176a177
  33. > /*
  34. 185a187
  35. > */
  36. -------------------------------------
  37. ************** hc_slock_asm.h ****************
  38. -------------------------------------
  39. ************** i386_swtch.s ****************
  40. -------------------------------------
  41. ************** locks.C ****************
  42. -------------------------------------
  43. ************** locks.h ****************
  44. -------------------------------------
  45. ************** machdep.h ****************
  46. -------------------------------------
  47. ************** main.h ****************
  48. -------------------------------------
  49. ************** main_done.C ****************
  50. -------------------------------------
  51. ************** main_init.C ****************
  52. -------------------------------------
  53. ************** main_main.C ****************
  54. -------------------------------------
  55. ************** makelinks ****************
  56. -------------------------------------
  57. ************** makelog ****************
  58. -------------------------------------
  59. ************** mips_lock.s ****************
  60. -------------------------------------
  61. ************** mips_swtch.s ****************
  62. -------------------------------------
  63. ************** misc.C ****************
  64. -------------------------------------
  65. ************** ns32000_swtch.s ****************
  66. -------------------------------------
  67. ************** objects.C ****************
  68. -------------------------------------
  69. ************** objects.h ****************
  70. -------------------------------------
  71. ************** parallel.h ****************
  72. -------------------------------------
  73. ************** preempt.C ****************
  74. -------------------------------------
  75. ************** presto.C ****************
  76. -------------------------------------
  77. ************** presto.h ****************
  78. -------------------------------------
  79. ************** process.C ****************
  80. 118c118,119
  81. <             tlist [i] = new Thread ("prealloc", 0, DEFSTACKSIZ);
  82. ---
  83. >             tlist [i] = new Thread ("prealloc", 0,
  84. >                                                DEFSTACKSIZ);
  85. 694c695
  86. <     for (i=p_thread_freelist->length(); i > lcl_thread_freelist_thresh/2; i--)
  87. ---
  88. >     for (i=p_thread_freelist->length(); i>lcl_thread_freelist_thresh/2; i--)
  89. 697,702c698,699
  90. <         if (t == 0) 
  91. <     {
  92. <         break;
  93. <     }
  94. <         else if (thread_global_freelist.length() > gbl_thread_freelist_max)
  95. ---
  96. >         if (t == 0) break;
  97. >         if (thread_global_freelist.length() > gbl_thread_freelist_max)
  98. 704c701,704
  99. <             delete t;
  100. ---
  101. > //#ifdef DEBUG_STARTUP
  102. >             cout << "Global thread freelist too big, deleting thread\n";
  103. > //#endif DEBUG_STARTUP
  104. >             delete (t);
  105. 707d706
  106. <     {
  107. 709d707
  108. <     }
  109. -------------------------------------
  110. ************** process.h ****************
  111. 4,5d3
  112. < //
  113. < //
  114. 200,201c198
  115. <          t = (Thread *) new char [sizeof(Thread)];
  116. <      cout << "new() THREAD at " << (void *) t << endl;
  117. ---
  118. >          return (t = (Thread *) new char [sizeof(Thread)]);
  119. 220d216
  120. <       cout << "got thread from freelist\n"; cout.flush();
  121. 226d221
  122. <       cout << "had to alloc thread\n"; cout.flush();
  123. 239,240d233
  124. <     
  125. <     cout << form ("appended thread at 0x%x to freelist", t) << endl;
  126. 248d240
  127. <     cout << "freeing up global threads" << endl;
  128. 250,255d241
  129. <     }
  130. <     else
  131. <     {
  132. <     cout << "freelist length: " << p_thread_freelist->length() << ' '
  133. <          << "threshold: " << lcl_thread_freelist_thresh << ' '
  134. <          << "So, free threads is doing nothing" << endl;
  135. -------------------------------------
  136. ************** pstream.C ****************
  137. -------------------------------------
  138. ************** pstream.h ****************
  139. -------------------------------------
  140. ************** scheduler.C ****************
  141. -------------------------------------
  142. ************** scheduler.h ****************
  143. -------------------------------------
  144. ************** scheduler_sig.C ****************
  145. -------------------------------------
  146. ************** shbrk.c ****************
  147. -------------------------------------
  148. ************** shmalloc.c ****************
  149. -------------------------------------
  150. ************** slock_asm.h ****************
  151. -------------------------------------
  152. ************** spinlock.C ****************
  153. -------------------------------------
  154. ************** spinlock.h ****************
  155. -------------------------------------
  156. ************** spinlock_impl.h ****************
  157. -------------------------------------
  158. ************** stack.C ****************
  159. -------------------------------------
  160. ************** stack.h ****************
  161. -------------------------------------
  162. ************** swtch.s ****************
  163. -------------------------------------
  164. ************** synchro.C ****************
  165. -------------------------------------
  166. ************** synchro.h ****************
  167. -------------------------------------
  168. ************** threadq.h ****************
  169. -------------------------------------
  170. ************** threads.C ****************
  171. 5a6,11
  172. >  *      Last modified:          xx/8/91
  173. >  *      by:            pbd
  174. >  *      reason:            converted from using "assignment to this"
  175. >  *                 over to overloaded new/delete functions for
  176. >  *                thread memory management.
  177. >  *
  178. 46d51
  179. < extern "C" init_atack (void *, int *);
  180. 88,92c93
  181. <     cout << form("new Thread allocated at 0x%x", t) << endl;
  182. <     
  183. <     if (init_reqd)          // initialization reqd if allocated
  184. <         {                       //   instead of being reused.
  185. ---
  186. >     if (init_reqd)             // initialization reqd if allocated
  187. 94,97d94
  188. <         }
  189. <     t->t_slockcount = 0;
  190. <     t->t_callstate.init();    // intentional ctor
  191. <     t->t_expired = 0;
  192. 101a99,104
  193. > void Thread::operator delete (void *t)
  194. > {
  195. >     // no-op: threads are not managed by deletion,
  196. >     // but C++ wants us to have a delete() if we have a new().
  197. > }
  198. 104d106
  199. <     cout << "creating thread \"" << name << "\"" << endl;
  200. 111,126c113,115
  201. < /* This material is bogus: there is no way to tell whether or
  202. <    not this call is for a base or derived class object
  203. <     { 
  204. <         t_slockcount = 0;
  205. <         t_callstate.init();
  206. <         t_expired = 0;
  207. <         t_stack_size = 0;    // there is no stack yet
  208. <         }    
  209. < */
  210. < #ifdef DEBUG_STARTUP
  211. <     dout << form("thisthread creating thread %s (%x)\n",
  212. <         name, this);
  213. < #endif /* DEBUG_STARTUP */
  214. ---
  215. >     t_slockcount = 0;
  216. >     t_callstate.init();
  217. >     t_expired = 0;
  218. 236,237d224
  219. <     cout << form ("destructing thread at 0x%x", this) << endl;
  220. 239d225
  221. < //        this = 0;
  222. 256d241
  223. <         cout << "freeing thread" << endl;
  224. 258d242
  225. < //                this = 0;
  226. -------------------------------------
  227. ************** threads.h ****************
  228. 93,94d92
  229. < /*    virtual Thread* newthread(char* name=0, int tid = 0,    // vtl ctr
  230. <          long ssiz = DEFSTACKSIZ); */
  231. 95a94
  232. >     void operator delete(void *);
  233. -------------------------------------
  234. ************** timer.C ****************
  235. -------------------------------------
  236. ************** timer.h ****************
  237. -------------------------------------
  238. ************** unix_timer.C ****************
  239. -------------------------------------
  240. ************** vax_swtch.s ****************
  241. -------------------------------------
  242.